package s0026;

public class RemoveTest {
public static void main(String[] args) {
        int[] arr1 = {1,2,2,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,7,7,8};
        System.out.println(equals(arr1,Solution.function(arr1)));

        int[] arr2 = {1,1,1,2,2,3,3,4,4,5,5,5,6,6,6,7,7,7,8,9,9};
        System.out.println(equals(arr2,Solution.function(arr2)));

        int[] arr3 = {1,3,7,23,45,65,67,345,673,743,875,954,1024};
        System.out.println(equals(arr3,Solution.function(arr3)));
    }

    public static boolean equals(int arr[],int length){

        for (int i=0;i<length-1;i++) {
            if (arr[i]==arr[i+1]) {
                return false;
            }
        }
        return true;
    }

}
